<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>事件里面的event对象</title>
</head>
<body>
<a href="#">我要出发事件</a>
</body>
</html>
<script>
    var a = document.querySelector('a');
    //创建一个函数,并且传递了两个参数,num1,num2,返回的是两个参数相加之和
    a.addEventListener('click',function(event){
            console.log(event);
    });




</script>